﻿@model EventManager.ViewModels.EventViewModel
@Html.HiddenFor(n => n.Id)
<div class="formSection">
    <div>
        @Html.LabelFor(n => n.Name)
        @Html.ValidationMessageFor(n => n.Name)
    </div>
    @Html.TextBoxFor(n => n.Name)
</div>
<div class="formSection">
    <div>@Html.LabelFor(n => n.Description)</div>
    @Html.TextAreaFor(n => n.Description)
</div>
<div class="formSection" id="datesInput">
    <span>@Html.LabelFor(n => n.StartDate)</span>
    @Html.TextBoxFor(n => n.StartDate)
    <span>@Html.LabelFor(n => n.EndDate)</span>
    @Html.TextBoxFor(n => n.EndDate)
    <div>
        @Html.ValidationMessageFor(n => n.StartDate)
        @Html.ValidationMessageFor(n => n.EndDate)
    </div>
</div>
<div class="formSection">
    <div>@Html.LabelFor(n => n.SelectedCategories)</div>
    @Html.ListBoxFor(n => n.SelectedCategories, new MultiSelectList(Model.Categories, "Id", "Name"),
        new { multiselect = "multiselect" })
</div>
